<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        for (var i = 10000; i <= 99999; i++) {
            var a = i % 10
            var b = parseInt(i % 100 / 10)
            var c = parseInt(i % 1000 / 100)
            var d = parseInt(i % 10000 / 1000)
            var e = parseInt(i / 10000)
            if (a === e && b === d && b === (a + 1) && c === (b + 1)) {
                console.log('10000~99999区间的回文数字有' + i)
            }
        }
    </script>
</body>

</html>